package com.gomyb.admin.module.product.model;

import com.gomyb.common.base.BaseModel;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 */
@Entity
@Table(name = "app_product_repertory")
@Getter
@Setter
@DynamicUpdate
@DynamicInsert
public class AppProductRepertory extends BaseModel {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "product_id")
    private Long productId;    //产品id

    @Column(name = "count")
    private BigDecimal count;   //库存（个）

}
